//
//  XLAnchorWorkTopCell.m
//  XiangLove
//
//  Created by 李传坤 on 2018/7/31.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import "XLAnchorWorkTopCell.h"

@implementation XLAnchorWorkTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor clearColor];
        self.contentView.backgroundColor = kWhiteColor;
        [self setupView];
    }
    return self;
}

-(void)setupView{
    _logo = [[UIImageView alloc] init];
    _logo.layer.cornerRadius = 5;
    _logo.layer.masksToBounds = YES;
    _logo.image = [UIImage imageNamed:@"common_qian_icon_rmb_n"];
    [self.contentView addSubview:_logo];
    [_logo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.size.mas_equalTo(CGSizeMake(20, 20));
        make.left.equalTo(self.contentView.mas_left).offset(11);
        make.top.equalTo(self.contentView.mas_top).offset(10);
    }];
    
    _tittle = [[UILabel alloc] init];
    _tittle.font = [UIFont systemFontOfSize:14];
    _tittle.textColor = RGB_HEX(0x000000);
    _tittle.text = @"主播收入";
    [self.contentView addSubview:_tittle];
    [_tittle mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.logo.mas_right).offset(5);
        make.centerY.equalTo(self.logo);
    }];
    
    _CashNumber = [[UILabel alloc] init];
    _CashNumber.textColor = RGB_HEX(0x0000000);
    _CashNumber.font = [UIFont systemFontOfSize:30];
    [self.contentView addSubview:_CashNumber];
    [_CashNumber mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_tittle.mas_bottom).offset(10);
        make.left.equalTo(_logo.mas_left).offset(5);
    }];
   
    
    
    _CashOut = [[UIButton alloc] init];
    _CashOut.layer.cornerRadius = 5;
    _CashOut.layer.borderColor = kBlackColor.CGColor;
    _CashOut.layer.borderWidth = 1;
    _CashOut.userInteractionEnabled = NO;
    [_CashOut setTitle:@"提现" forState:UIControlStateNormal];
    [_CashOut setTitleColor:kBlackColor forState:UIControlStateNormal];
    _CashOut.titleLabel.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:_CashOut];
    [_CashOut mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView.mas_right).offset(-16);
        make.centerY.equalTo(self.contentView);
        make.size.mas_equalTo(CGSizeMake(70, 35));
    }];
    
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
